<!DOCTYPE html>
<html>
<head>

	<title>修改</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link href="__PUBLIC__/bootstrap/css/bootstrap.min.css" rel="stylesheet"> 
   	  <script src="__PUBLIC__/bootstrap/js/jquery.min.js"></script>
      <script src="__PUBLIC__/bootstrap/js/bootstrap.min.js"></script>
</head>
<body>
<volist name="aa" id="vo" mod="2" empty="暂时没有数据" key="k">

<form class="form-horizontal" role="form" action="userupdate" method="post"  enctype="multipart/form-data">

	<input type="hidden" name="id" value="{$vo.id}"></input>
 
    <div class="form-group ">
        <label for="username" class="col-md-2 control-label">用户名</label>
        <div class="col-md-5">
            <input type="text" class="form-control" id="username" name="username" placeholder="username" value="{$vo.username}">
        </div>
    </div>
    <div class="form-group">
        <label for="pass"class="col-md-2 control-label">密码</label>
        <div class="col-md-5">
            <input type="password" class=" form-control " id="pass" name="pass" placeholder="password" value="{$vo.pass}">
        </div>
    </div>

    

    <div class="form-group">
        <label for="email" class="col-md-2 control-label">Email </label>
        <div class="col-md-5">
            <input type="email" class="form-control" id="email" name="email" placeholder="email" value="{$vo.email}">
        </div>
    </div>

    <div class="form-group">
        <label for="tele" class="col-md-2 control-label">电话</label>
        <div class="col-md-5">
            <input type="text" class="form-control" id="tele" name="tele" placeholder="telephone" value="{$vo.tele}">
        </div>
    </div>

    <div class="form-group">
        <label for="realname" class="col-md-2 control-label">用户真名</label>
        <div class="col-md-5">
            <input type="text" class="form-control" id="realname" name="realname" placeholder="realname" value="{$vo.realname}">
        </div>
    </div>

    <div class="form-group">
        <label for="image" class="col-md-2 control-label">头像</label>
        <div class="col-md-3">

            <img clas="img-rounded" id="image"  src="__PUBLIC__/uploads/photo/{$vo.photo}" alt="..." width="50%" />
        </div>
    </div>
    <div class="form-group">
        <label for="photo" class="col-md-2 control-label">修改文件</label>
        <div class="col-md-2">
            <input type="file" id="photo" name="photo">
        </div>
    </div>

    <div class="form_group">
        <label for="intro" class="col-md-2 control-label">介绍</label>
        <div class="col-md-10">
            <textarea class="form-control" rows="5" cols="50" id="intro" name="intro" placeholder="{$vo.verifyinfo}">
               
            </textarea>
        </div>
    </div>

    <div class="form_group">
        <label for="isstar" class="col-md-2 control-label">明星作者</label>
        <div class="col-md-10">
            <label class="radio-inline"  > 
                <input type="radio" name="isstar" id="isstar" value="1"  {:($vo['isstar']==1)?"checked":""}>是
            </label>
            <label class="radio-inline">
                <input type="radio" name="isstar" id="isstar2" value="0" {:($vo['isstar']==0)?"checked":""}>否
            </label>
        </div>
    </div>

    <div class="form_group">
        <label for="isfirst" class="col-md-2 control-label">首页推荐</label>
        <div class="col-md-10">
            <label class="radio-inline" >
                <input type="radio" name="isfirst" id="isfirst" value="1" {:($vo['isfirst']==1)?"checked":""} >是
            </label>
            <label class="radio-inline">
                <input type="radio" name="is" id="is2" value="0"  {:($vo['isfirst']==0)?"checked":""}>否
            </label>
        </div>
    </div>

    <div class="form-group">
        <label for="state" class="col-md-2 control-label">状态</label>
        <div class="col-md-2">
            <select class="form-control" name="state" id="state">
                <option value="0" {:($vo['state']==0)?"selected":""} >普通</option>
                <option value="1" {:($vo['state']==1)?"selected":""} >禁言</option>
                <option value="2" {:($vo['state']==2)?"selected":""}>禁用</option>
            </select>
        </div>
    </div>
    <div class="col-md-2 col-md-offset-5">
        <button type="submit" class="btn btn-default">修改用户</button>
    </div>

</form>

</volist>
</body>
</html>